package per.ace.annotation.model;

import per.ace.annotation.annotation.NeedSetValue;
import per.ace.annotation.dao.UserDao;

import java.io.Serializable;

public class Order implements Serializable {
    private static final long serialVersionUID = 2604212534569925705L;

    private String id;
    private String customerId;

    @NeedSetValue(beanClass = UserDao.class,param = "customerId",method="find",targetFiled = "name")
    private String customerName;
    //反射--->find--->反射怎么去调用方法--->User user = find.invoke()
    //通过反射拿到method -- bean -- 从注解中获取 --> getAnnotation --order结果集
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }
}
